Skip to main content

InlineValidator<T>

Validator implementation that allows rules to be defined without inheriting from AbstractValidator.

Assembly: ServiceStack.dll
View Source
Declaration
public class InlineValidator<T> : AbstractValidator<T>, IValidator<T>, IValidator, IEnumerable<IValidationRule>, IEnumerable, IRequiresRequest, IHasTypeValidators, IServiceStackValidator

Methods

Add<TProperty>(Func<InlineValidator<T>, IRuleBuilderOptions<T, TProperty>>)

Allows configuration of the validator.

View Source
Declaration
public void Add<TProperty>(Func<InlineValidator<T>, IRuleBuilderOptions<T, TProperty>> ruleCreator)
Parameters
TypeName
System.Func<ServiceStack.FluentValidation.InlineValidator`1,ServiceStack.FluentValidation.IRuleBuilderOptions<<T>,<TProperty>>>ruleCreator
Type Parameters
  • TProperty

Implements